﻿<div id="da-sidebar" class="admin-menu" style="margin-right:20px; ">
                
                    <!-- Main Navigation -->
                    <div id="da-main-nav" class="da-button-container">
                        <ul>
                             <li>
                            	<a href="@Url.Action("GuestBook", "Administration")">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="@Url.Content("~/images/icons/black/32/address_book_1.png")" alt="Księga gości">
                                    </span>
                                	Księga gości
                                </a>
                               
                            </li>
                             <li>
                            	<a href="@Url.Action("Index", "Gallery")">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="@Url.Content("~/images/icons/black/32/images_2.png")" alt="Galeria">
                                    </span>
                                	Galeria
                                </a>
                               
                            </li>
                            <li>
                            	<a href="@Url.Action("Index", "DictCollection")">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="@Url.Content("~/images/icons/black/32/create_write.png")" alt="Kolekcje">
                                    </span>
                                	Kolekcje
                                </a>
                               
                            </li>
                            <li>
                                 <a href="@Url.Action("Index", "DictCategory")">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="@Url.Content("~/images/icons/black/32/create_write.png")" alt="Kategorie">
                                    </span>
                                	Kategorie
                                </a>

                            </li>
                            <li>
                            	<a href="@Url.Action("Index", "Bottle")">
                                	<!-- Icon Container -->
                                	<span class="da-nav-icon">
                                    	<img src="@Url.Content("~/images/icons/black/32/images_2.png")" alt="Miniaturki">
                                    </span>
                                	Miniaturki
                                </a>
                                @if(ViewBag.Collections !=null)
                                {
                                    <ul>
                                    @foreach (MiniBottles.Models.DictCollection collection in ViewBag.Collections)
                                    {
                                        <li>
                                            <a href="@Url.Action("Index", "Bottle", new { collectionId = collection.Id })">@collection.Name</a>
                                            @if (collection.Categories != null)
                                            {
                                             <ul>
                                                 @foreach (MiniBottles.Models.DictCategory category in collection.Categories.Where(x => !x.IsDeleted && x.IsActive).OrderBy(x=> x.Name ))
                                                {
                                                <li> <a href="@Url.Action("Index", "Bottle", new { categoryId = category.Id })">@category.Name (@category.Bottles.Where(x=> !x.IsDeleted).Count())</a></li>
                                                 }
                                             </ul>
                                            }

                                        </li>
                                    }
                                    </ul>
                                }
                            </li>
 
                        </ul>
                    </div>
         <div id="da-sidebar-separator"></div>
                    
     </div>